/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package olympicgameslogic;

import java.io.Serializable;

/**
 *
 * @author Fábio
 */
public class DisciplineEvent implements Serializable{

   public static enum EVENTGENDER {

      MEN, WOMEN, MIXED
   };
   public static enum ROUND{
      FINAL
   };

   private String eventName;
   private Discipline eventDiscipline;
   private EVENTGENDER eventGender;
   private ROUND round = DisciplineEvent.ROUND.FINAL;

   public DisciplineEvent() {
   }

   public DisciplineEvent(String eventName, Discipline eventDiscipline,  EVENTGENDER eventGender) {
      setEventName(eventName);
      setEventDiscipline(eventDiscipline);
      setEventGender(eventGender);
      setRound(DisciplineEvent.ROUND.FINAL);
      
   }



   /**
    * @return the eventName
    */
   public String getEventName() {
      return eventName;
   }

   /**
    * @return the eventDiscipline
    */
   public Discipline getEventDiscipline() {
      return eventDiscipline;
   }

   

   /**
    * @return the event gender
    */
   public EVENTGENDER getEventGender() {
      return eventGender;
   }

//   /**
//    * @return the event type
//    */
//   public EVENTTYPE getEventType() {
//      return eventType;
//   }

   /**
    * @param eventName the eventName to set
    */
   public void setEventName(String eventName) {
      this.eventName = eventName;
   }

   /**
    * @param eventDiscipline the eventDiscipline to set
    */
   public void setEventDiscipline(Discipline eventDiscipline) {
      this.eventDiscipline = eventDiscipline;
   }

  

   /**
    * @param eventGender the eventGender to set
    */
   public void setEventGender(EVENTGENDER eventGender) {
      this.eventGender = eventGender;
   }

   /**
    * @return the round
    */
   public ROUND getRound() {
      return round;
   }

   /**
    * @param round the round to set
    */
   public void setRound(ROUND round) {
      this.round = round;
   }

   



   @Override
   public String toString() {
      return "Modality: " + this.eventDiscipline.getModality().getName() + ", Discipline:" + this.eventDiscipline.getName() + 
	      ", " + this.eventDiscipline.getType()+ ", " + this.eventGender + " ";
   }
}
